<?php echo $this->Form->create('Filter', array('class' => 'well')); ?>
<div class="row-fluid">
	<div class="control-group span4">
		<?php echo $this->Form->Label('categoria', 'Categoria', array('class' => 'control-label'));	?>
		<div class="controls">
			<?php echo $this->Form->input('Filter.categoria', array('label' => false, 'div' => false, 'class' => 'span12','placeholder' => 'Digite a categoria que está procurando')); ?>
		</div>
	</div>
	<div class="control-group span4">
		<?php echo $this->Form->Label('localizacao', 'Localizacao', array('class' => 'control-label'));	?>
		<div class="controls">
			<?php echo $this->Form->input('Filter.localizacao', array('label' => false, 'div' => false, 'class' => 'span12','placeholder' => 'Digite a categoria que está procurando')); ?>
		</div>
	</div>
</div>
<?php echo $this->Form->end();?>

<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
	<th width="15%"><?php echo $this->Paginator->sort('id', 'Código');?></span></th>
	<th><?php echo $this->Paginator->sort('nome');?></th>
	<th class="actions" width="15%"><?php echo __('Ações');?></th>
</tr>
</thead>
<tbody>
<?php
		foreach ($categorias as $categoria): ?>
<tr>
	<td><?php echo h($categoria['Categoria']['id']); ?>&nbsp;</td>
	<td><?php echo h($categoria['Categoria']['nome']); ?>&nbsp;</td>
	<td class="actions">
		<?php echo $this->Html->link('<i class="icon-eye-open icon-white"></i>', array('action' => 'view', $categoria['Categoria']['id']), array('escape' => false, 'class' => 'btn btn-primary btn-mini')); ?>
		<?php echo $this->Html->link('<i class="icon-pencil icon-white"></i>', array('action' => 'edit', $categoria['Categoria']['id']), array('escape' => false, 'class' => 'btn btn-primary btn-mini')); ?>
		<?php echo $this->Form->postLink('<i class="icon-trash icon-white"></i>', array('action' => 'delete', $categoria['Categoria']['id']), array('escape' => false, 'class' => 'btn btn-danger btn-mini'), __('Are you sure you want to delete # %s?', $categoria['Categoria']['id'])); ?>
	</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
	

<script type="text/javascript">

	$(document).ready(function () {
		
	});

</script>